import yaml
from pathlib import Path


def load_config():
    yaml_file = Path(__file__).parent / 'config.yaml'
    with open(yaml_file, 'r', encoding='utf-8') as fs:
        config = yaml.safe_load(fs)
    return config


if __name__ == '__main__':
    import json
    print(json.dumps(load_config(), ensure_ascii=False ,indent=4))

